
var arrayFilter=function(arr,callback){
    var returnedArray=[];

    for (var index in arr){
         if(callback(arr[index])) {
             returnedArray.push(arr[index])
         }
    }

    return returnedArray;
}


module.exports={
    arrayFilter
}
